import 'package:aimaterials_app/model/User.dart';
import 'package:json_annotation/json_annotation.dart';

import 'EventPayload.dart';
import 'Repository.dart';

/**
 * Created by guoshuyu
 * Date: 2018-07-31
 */

part 'Resource.g.dart';

@JsonSerializable()
class Resource {
   num resourceId;
   String resourceName;
   String resourceType;
   String resourceUrl;
   String preview;
   String resourceOriginal;
   String status;
   String res1;
   String res2;
   String res3;

  Resource(
    this.resourceId,
    this.resourceName,
    this.resourceType,
    this.resourceUrl,
    this.preview,
    this.resourceOriginal,
    this.status,
    this.res1,
      this.res2,
      this.res3,
  );

  factory Resource.fromJson(Map<String, dynamic> json) => _$ResourceFromJson(json);

  Map<String, dynamic> toJson() => _$ResourceToJson(this);

}
